//
//  HLEM3U8DownloadTask.h
//  DownloadM3U8Tool_Example
//
//  Created by hle1879 on 2020/8/28.
//  Copyright © 2020 134344. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HLEM3U8DownloadTask : NSObject<NSCopying,NSMutableCopying,NSCoding>

/// The m3u file's source URL.
@property(nonatomic,strong)NSURL *url;

/// The m3u file's  taskID
@property (nonatomic,assign)NSInteger taskID;

/// Name of m3u file.
@property(nonatomic,copy)NSString *name;

/// An array of names of sliced ​​videos parsed from the contents of the file.
@property(nonatomic,copy)NSArray<NSURL*> *tsArr;

/// The total size of all sliced ​​videos.
@property(nonatomic,assign)NSInteger totalSize;

/// An array of slice videos'size parsed from the contents of file
@property(nonatomic,copy)NSArray<NSNumber*> *tsSizeArr;

/// file's save source path.
@property(nonatomic,copy)NSString *uri;

///file can supportBackground
@property(nonatomic,assign)BOOL supportBackground;

///file can supportbrokenPointDownload
@property(nonatomic,assign)BOOL supportBrokenPointDownload;

///file downloadRetries
@property(nonatomic,assign)NSInteger downloadRetries;


- (void)copyPropertys:(HLEM3U8DownloadTask*)task;
@end

NS_ASSUME_NONNULL_END
